package com.shi.entity;

import com.alibaba.fastjson.JSONObject;

/**
 * shi_user实体类
 * 
 * @author 
 *
 */
public class ShiUser {
	/***/
	private String id; 
	/***/
	private String userName; 
	/***/
	private String password; 
	/***/
	private java.time.Instant createTime; 
	/***/
	private java.time.Instant lastLogin; 
	/***/
	private String weixin; 
	/***/
	private String mail; 
	/***/
	private String mobile; 
	/***/
	private Integer isDel; 
	/***/
	private String nickName; 
	/**
	 * 实例化
	 */
	public ShiUser() {
		super();
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getId() != null) {
			result.put("id",this.getId());
		}
		if (this.getUserName() != null) {
			result.put("userName",this.getUserName());
		}
		if (this.getPassword() != null) {
			result.put("password",this.getPassword());
		}
		if (this.getCreateTime() != null) {
			result.put("createTime",this.getCreateTime());
		}
		if (this.getLastLogin() != null) {
			result.put("lastLogin",this.getLastLogin());
		}
		if (this.getWeixin() != null) {
			result.put("weixin",this.getWeixin());
		}
		if (this.getMail() != null) {
			result.put("mail",this.getMail());
		}
		if (this.getMobile() != null) {
			result.put("mobile",this.getMobile());
		}
		if (this.getIsDel() != null) {
			result.put("isDel",this.getIsDel());
		}
		if (this.getNickName() != null) {
			result.put("nickName",this.getNickName());
		}
		return result;
	}
	
	
	/**
	 * 获取id
	 * 
	 * @return
	 */
	public String getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(String id) {
		this.id = id;
	}
	
	/**
	 * 获取userName
	 * 
	 * @return
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * 设置userName
	 * 
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	/**
	 * 获取password
	 * 
	 * @return
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * 设置password
	 * 
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	/**
	 * 获取createTime
	 * 
	 * @return
	 */
	public java.time.Instant getCreateTime() {
		return createTime;
	}

	/**
	 * 设置createTime
	 * 
	 * @param createTime
	 */
	public void setCreateTime(java.time.Instant createTime) {
		this.createTime = createTime;
	}
	
	/**
	 * 获取lastLogin
	 * 
	 * @return
	 */
	public java.time.Instant getLastLogin() {
		return lastLogin;
	}

	/**
	 * 设置lastLogin
	 * 
	 * @param lastLogin
	 */
	public void setLastLogin(java.time.Instant lastLogin) {
		this.lastLogin = lastLogin;
	}
	
	/**
	 * 获取weixin
	 * 
	 * @return
	 */
	public String getWeixin() {
		return weixin;
	}

	/**
	 * 设置weixin
	 * 
	 * @param weixin
	 */
	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}
	
	/**
	 * 获取mail
	 * 
	 * @return
	 */
	public String getMail() {
		return mail;
	}

	/**
	 * 设置mail
	 * 
	 * @param mail
	 */
	public void setMail(String mail) {
		this.mail = mail;
	}
	
	/**
	 * 获取mobile
	 * 
	 * @return
	 */
	public String getMobile() {
		return mobile;
	}

	/**
	 * 设置mobile
	 * 
	 * @param mobile
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	/**
	 * 获取isDel
	 * 
	 * @return
	 */
	public Integer getIsDel() {
		return isDel;
	}

	/**
	 * 设置isDel
	 * 
	 * @param isDel
	 */
	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}
	
	/**
	 * 获取nickName
	 * 
	 * @return
	 */
	public String getNickName() {
		return nickName;
	}

	/**
	 * 设置nickName
	 * 
	 * @param nickName
	 */
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	@Override
	public String toString() {
		return "ShiUser [id=" + id + " , userName=" + userName + " , password=" + password + " , createTime=" + createTime + " , lastLogin=" + lastLogin + " , weixin=" + weixin + " , mail=" + mail + " , mobile=" + mobile + " , isDel=" + isDel + " , nickName=" + nickName + "  ]";
	
	}
	
	
}
